<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
<link rel="stylesheet" th:href="@{/lib/zTree_v3/css/zTreeStyle/zTreeStyle.css}" type="text/css">
</head>
<body>
<div class="layui-form timo-compile">
    <form th:action="@{/clue/add}">
        <input type="hidden" name="id" th:if="${clue}" th:value="${clue.id}"/>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="phone"  placeholder="请输入手机号" th:value="${clue?.phone}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">称呼</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="nick"  placeholder="请输入称呼" th:value="${clue?.nick}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">意向银行</label>
            <div class="layui-input-inline">
                <input class="layui-input select-tree" th:attr="data-url=@{/dept/list?pid=1}" type="text" name="orgCode"  placeholder="请选择" >
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <label class="layui-form-label">分派状态</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="allotStatus"  placeholder="请输入分派状态" th:value="0">
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <label class="layui-form-label">创建时间</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="createTime"  placeholder="请输入通知时间" th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd HH:mm:ss')}">
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
	<script type="text/javascript" th:src="@{/js/plugins/jquery-3.3.1.min.js}"></script>
	<script type="text/javascript" th:src="@{/lib/zTree_v3/js/jquery.ztree.core.min.js}"></script>
	<script type="text/javascript" th:src="@{/js/timoTree.js}"></script>
	<script type="text/javascript">
		// 树形菜单
		$.fn.selectTree();
	</script>
</body>
</html>
